#!/usr/bin/env bash

basepath=$(cd `dirname $0`; pwd)
basepath=$(cd ../; pwd)

docker run -d --name ztaudio-activity-fpm -v $basepath:/data/ztaudio-activity  ztaudio-activity:fpm
docker run -d --name ztaudio-activity-openresty -p 80:80 -p 443:443 --link ztaudio-activity-fpm:ztaudio-activity-fpm -v $basepath/docker/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf:ro  -v $basepath/docker/nginx_conf.d:/etc/nginx/conf.d  --volumes-from ztaudio-activity-fpm   openresty/openresty
